package com.elecbook.rpc.feignclient;

import com.elecbook.rpc.feignclient.fallback.SystemServiceClientFallbackFactory;
import com.elecbook.system.model.dto.PropertiesDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "system-api", fallbackFactory = SystemServiceClientFallbackFactory.class)
public interface SystemServiceClient {
    @PostMapping(value = "/system/properties/r/key")
    String getValue(@RequestBody PropertiesDTO dto);
}